<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>P02_栅格布局.html</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    <style>
        .row {
            border: 1px red dashed;
            margin: 10px 0;
        }

        .col-sm, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6 {
            border: 1px pink solid;
            background-color: lightblue;
        }
    </style>
</head>
<body>
<div class="container">
    <!--等于12列-->
    <div class="row">
        <div class="col-sm-4">第一列</div>
        <div class="col-sm-4">第二列</div>
        <div class="col-sm-4">第三列</div>
    </div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm">第一列</div>
        <div class="col-sm">第二列</div>
        <div class="col-sm">第三列</div>
    </div>
</div>
<div class="container">
    <!--小于12列-->
    <div class="row">
        <div class="col-sm-2">第一列</div>
        <div class="col-sm-5">第二列</div>
        <div class="col-sm-3">第三列</div>
    </div>
</div>
<div class="contain于er">
    <!--大于12列-->
    <div class="row">
        <div class="col-sm-4">第一列</div>
        <div class="col-sm-5">第二列</div>
        <div class="col-sm-6">第三列</div>
    </div>
</div>
</body>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
</html>